package ro.bluecube.admlocal.registruagricol.entity;

import javax.persistence.Entity;
import javax.persistence.Enumerated;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import ro.bluecube.admlocal.commons.PersistableEntity;

@Entity
@NamedQueries( {
		@NamedQuery(name = "findAllTeren", query = "SELECT T FROM Teren T")
		})
@Table(name = "terenuri")
public class Teren extends PersistableEntity{
	
	private static final long serialVersionUID = -3473099153425669816L;
	private double suprafataDomiciliu;
	private double suprafataAlteLocalitati;
	private double suprafataIntravilan;
	private double suprafataExtravilan;
	
	private CategorieCod categorieCod;
	
	private Titular titular;
	
	private double suprafataTotal;
	
	public void setSuprafataDomiciliu(double suprafataDomiciliu) {
		this.suprafataDomiciliu = suprafataDomiciliu;
	}
	public double getSuprafataDomiciliu() {
		return suprafataDomiciliu;
	}
	public void setSuprafataAlteLocalitati(double suprafataAlteLocalitati) {
		this.suprafataAlteLocalitati = suprafataAlteLocalitati;
	}
	public double getSuprafataAlteLocalitati() {
		return suprafataAlteLocalitati;
	}
	public void setSuprafataIntravilan(double suprafataIntravilan) {
		this.suprafataIntravilan = suprafataIntravilan;
	}
	public double getSuprafataIntravilan() {
		return suprafataIntravilan;
	}
	public void setSuprafataExtravilan(double suprafataExtravilan) {
		this.suprafataExtravilan = suprafataExtravilan;
	}
	public double getSuprafataExtravilan() {
		return suprafataExtravilan;
	}
	public void setSuprafataTotal(double suprafataTotal) {
		this.suprafataTotal = suprafataTotal;
	}
	public double getSuprafataTotal() {
		return suprafataTotal;
	}
	public void setCategorieCod(CategorieCod categorieCod) {
		this.categorieCod = categorieCod;
	}
	
	public CategorieCod getCategorieCod() {
		return categorieCod;
	}
	public void setTitular(Titular titular) {
		this.titular = titular;
	}
	
	@JoinColumn(name="TITULAR_ID", referencedColumnName="")
	@ManyToOne
	public Titular getTitular() {
		return titular;
	}	
}